<script type="text/javascript" >
		$(document).ready(function() {
		$.ajaxSetup({ cache: false }); // This part addresses an IE bug.  without it, IE will only load the first number and will never refresh
		setInterval(function() {
		$('#content_refresh_jadwal').load('<?=base_url().'index.php/barang/refresh_jadwal'?>');
		}, 5000); // the "3000" here refers to the time to refresh the div.  it is in milliseconds. 
		});
		function check_all()
		{
			var cIdx = 'id'; //manggil id chekbok	
			for (var i=0;i < document.table_form.elements.length;i++)
			{
				var e = document.table_form.elements[i];
				if ((e.id == 'id') && (e.type=='checkbox'))
				{
					e.checked = 'checked';
				}
			}
		}
		
		function uncheck_all()
		{
			var cIdx = 'id'; //manggil id chekbok	
			for (var i=0;i < document.table_form.elements.length;i++)
			{
				var e = document.table_form.elements[i];
				if ((e.id == 'id') && (e.type=='checkbox'))
				{
					e.checked = '';
				}
			}
		}
		
</script>

<!-- For ease i'm just using a JQuery version hosted by JQuery- you can download any version and link to it locally -->

</head>
<body>
 
<div id="responsecontainer">
</div>

<section class="grid_12">
	<div class="block-border">
		<form class="block-content form"  name="table_form" id="table_form" method="post" action="">
			<h1>Master > Master Keberangkatan : Qty > View Data Keberangkatan</h1>
			
			<div class="block-controls">
				
				<ul class="controls-buttons">
					<?php echo $this->pagination->create_links(); ?>
					<li class="sep"></li>
					<li><?
	
								echo anchor('barang/insert', 'Tambah Data');
							
						?></li>
				</ul>
				
			</div>
		
			<div class="no-margin" id="content_refresh_jadwal">
			
			</div>
			
			<ul class="message no-margin">
				&nbsp;
				<!--<li>Results x - y out of z</li>-->
			</ul>
			
			<div class="block-footer">
				<!--
				<img src="images/icons/fugue/arrow-curve-000-left.png" width="16" height="16" class="picto"> 
				<a href="javascript:void(0)" class="button" onClick="check_all(0)" >Select All</a> 
				<a href="javascript:void(0)" class="button" onClick="uncheck_all(0)" >Unselect All</a>
				<span class="sep"></span>
				<?=anchor('barang/insert', 'Tambah Data', array('class'=>'button'))?>
				<span class="sep"></span>
				<select name="table-action" id="table-action" class="small">
					<option value="">Action for selected...</option>
					<option value="validate">Validate</option>
					<option value="delete">Delete</option>
				</select>
				<button type="submit" class="small">Ok</button>-->
			</div>
				
		</form>
	</div>
</section>
